<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Open SCA: frameworks/libCF_Utils/src/cf_utils.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.onetek.net"><img alt="Logo" src="openscaLogo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Open SCA
   &#160;<span id="projectnumber">Version 0.6.0</span>
   </div>
   <div id="projectbrief">Open SCA</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('cf__utils_8cpp.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">cf_utils.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>:   
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="cf__utils_8h_source.html">../include/cf_utils.h</a>&quot;</code><br />
<code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;cstring&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for cf_utils.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="cf__utils_8cpp__incl.png" border="0" usemap="#frameworks_2lib_c_f___utils_2src_2cf__utils_8cpp" alt=""/></div>
<map name="frameworks_2lib_c_f___utils_2src_2cf__utils_8cpp" id="frameworks_2lib_c_f___utils_2src_2cf__utils_8cpp">
</map>
</div>
</div>
<p><a href="cf__utils_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a680533975968f65b1fc5c1092b528e1e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cf__utils_8cpp.html#a680533975968f65b1fc5c1092b528e1e">openProfileFile</a> (CF::FileSystem_ptr fs, const char *profile, CF::File_var &amp;file)</td></tr>
<tr class="memdesc:a680533975968f65b1fc5c1092b528e1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The operation shall open a file, and return the file object reference.  <a href="#a680533975968f65b1fc5c1092b528e1e">More...</a><br /></td></tr>
<tr class="separator:a680533975968f65b1fc5c1092b528e1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fe8bd62937b21334bf54a947c33f11c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cf__utils_8cpp.html#a8fe8bd62937b21334bf54a947c33f11c">closeProfileFile</a> (CF::File_ptr file)</td></tr>
<tr class="separator:a8fe8bd62937b21334bf54a947c33f11c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa2b0a864025fa044061b16e8bbd3854"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cf__utils_8cpp.html#aaa2b0a864025fa044061b16e8bbd3854">sendObjAdded_event</a> (const char *producerId, const char *sourceId, const char *sourceName, CORBA::Object_ptr sourceIOR, StandardEvent::SourceCategoryType sourceCategory)</td></tr>
<tr class="separator:aaa2b0a864025fa044061b16e8bbd3854"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86c53e7468d704b3bb8800be38492846"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cf__utils_8cpp.html#a86c53e7468d704b3bb8800be38492846">getConfigFilePathByExecutablePath</a> ()</td></tr>
<tr class="separator:a86c53e7468d704b3bb8800be38492846"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>:  </p>
<dl class="section author"><dt>Author</dt><dd>open Team </dd></dl>
<dl class="section version"><dt>Version</dt><dd>9 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2017-03-16 <pre class="fragment">* ==============================================================================
* &lt;Date&gt;     | &lt;Version&gt; | &lt;Author&gt;       | &lt;Description&gt;
* ==============================================================================
*  2015-05-23 | 1       | open Team       | Create file
* ==============================================================================
* </pre> <hr/>
 <h2><center>&copy; Copyright(c)2015-2025 JFounder Info Tech Co.,Ltd</center></h2>
</dd></dl>
<p>All rights reserved. The right to copy, distribute, modify or otherwise make use of this software may be licensed only pursuant to the terms of an applicable JFounder license agreement. Company website: www.onetek.net </p>

<p>Definition in file <a class="el" href="cf__utils_8cpp_source.html">cf_utils.cpp</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a8fe8bd62937b21334bf54a947c33f11c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool closeProfileFile </td>
          <td>(</td>
          <td class="paramtype">CF::File_ptr&#160;</td>
          <td class="paramname"><em>file</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="cf__utils_8cpp_source.html#l00105">105</a> of file <a class="el" href="cf__utils_8cpp_source.html">cf_utils.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a86c53e7468d704b3bb8800be38492846"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string getConfigFilePathByExecutablePath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="cf__utils_8cpp_source.html#l00162">162</a> of file <a class="el" href="cf__utils_8cpp_source.html">cf_utils.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a680533975968f65b1fc5c1092b528e1e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool openProfileFile </td>
          <td>(</td>
          <td class="paramtype">CF::FileSystem_ptr&#160;</td>
          <td class="paramname"><em>fs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>profile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CF::File_var &amp;&#160;</td>
          <td class="paramname"><em>file</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The operation shall open a file, and return the file object reference. </p>
<dl class="section note"><dt>Note</dt><dd>shall close this CF::File object after use </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fs</td><td>File system ojbect reference </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">profile</td><td>The file wait for opening </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">file</td><td>Reference of specialed file</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Result of opening the file. </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">true</td><td>Open successfully. </td></tr>
    <tr><td class="paramname">false</td><td>Open failed. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cf__utils_8cpp_source.html#l00057">57</a> of file <a class="el" href="cf__utils_8cpp_source.html">cf_utils.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aaa2b0a864025fa044061b16e8bbd3854"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sendObjAdded_event </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>producerId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>sourceId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>sourceName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CORBA::Object_ptr&#160;</td>
          <td class="paramname"><em>sourceIOR</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">StandardEvent::SourceCategoryType&#160;</td>
          <td class="paramname"><em>sourceCategory</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="cf__utils_8cpp_source.html#l00132">132</a> of file <a class="el" href="cf__utils_8cpp_source.html">cf_utils.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_27e7b6da28153e106312658788f622d3.html">frameworks</a></li><li class="navelem"><a class="el" href="dir_ecac01cf0516f87ea4205d3d96f45c96.html">libCF_Utils</a></li><li class="navelem"><a class="el" href="dir_3a545e40190b61365c64ef8b7ce68ff9.html">src</a></li><li class="navelem"><a class="el" href="cf__utils_8cpp.html">cf_utils.cpp</a></li>
    <li class="footer">Generated on Fri Jul 12 2019 14:31:54 for
    <a href="http://www.onetek.net">
    <img class="footer" src="openscaLogo.png" height="31" alt="openSCA"/></a>
    </li>
  </ul>
</div>
</body>
</html>
